package com.yanyu.space.common.log;

import brave.internal.Platform;
import com.yanyu.space.common.core.util.AppContext;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.MDC;
import org.springframework.boot.context.properties.bind.Binder;

/**
 * @author yanyu
 */
public class MDCHelper {

    public static void put() {
        MDC.put("localIp", Platform.get().linkLocalIp());
    }

    public static void remove() {
        MDC.remove("localIp");
    }
}
